<?php 
class indexClassAction extends Action
{
	public $maxwidth 	= '100%';
	
	public function defaultAction()
	{
		
	}
	

	/**
	*	获取选择卡内容
	*/
	public function getshtmlAction()
	{
		$num  = $this->get('num');
		$surl = $this->jm->base64decode($this->get('surl'));
		$urlpms = $this->jm->base64decode($this->get('urlpms'));
		$file = ''.P.'/'.$surl.'.php';
		if(!file_exists($file))return '404 not found '.$file.'';
		if($urlpms)$this->assign('params', json_decode('{'.$urlpms.'}',true));
		$this->displayfile = $file;
		if($surl=='index/home/rock_home'){
			$homeitem = array();
			//$homeitem[] = array('num'=>'worc','name'=>'分区使用情况','row'=>-1);
			
			$homeitem[] = array('num'=>'newfile','name'=>'最新文件','row'=>0);
			//$homeitem[] = array('num'=>'worctj','name'=>'分区文件情况统计','row'=>0);
			$homeitem[] = array('num'=>'fenqu','name'=>'分区使用情况','row'=>1);
			if($this->admintype==1)$homeitem[] = array('num'=>'syslog','name'=>'系统日志','row'=>1);
			$this->assign('homeitem', $homeitem);
		}
	}
	
}